import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86184
 * Date: 2023-01-27
 * Time: 15:15
 */
public class Guess_numbers {
    public static void main(String[] args) {
        Random rand=new Random();
        int guess = rand.nextInt(101);

        Scanner scan=new Scanner(System.in);

        System.out.println("请输入猜测的数字：");
        while(scan.hasNextInt()){
            int n= scan.nextInt();
            if(guess==n){
                System.out.println("猜对了");
                break;
            }else if(guess>n){
                System.out.println("猜小了");
            }else{
                System.out.println("猜大了");
            }
        }
    }
}
